//
//  SEGHouseRentalAndSaleRequestManager.h
//  SEGCommunityBussiness
//
//  Created by 梁学彰 on 2019/9/20.
//

#import <Foundation/Foundation.h>
#import "SEGHTTPManager.h"
NS_ASSUME_NONNULL_BEGIN

@interface SEGHouseRentalAndSaleRequestManager : NSObject
/**
 租售分页接口

 @param page 页码 1开始
 @param regionId 区域ID
 @param houseType 户型（1：1室   2：2室   3：3室  4：4室:  5：4室以上）
 @param rentalType 租售类型 1:整租 2:独立房间 3:合租床位 4:出售
 @param finished 接口返回
 */
- (void)requestRentalListWithPage:(NSUInteger )page regionId:(NSString *)regionId houseType:(NSString *)houseType rentalType:(NSString *)rentalType Finished:(SEGNetworkRequestCallBack)finished;


/**
 根据百度地图返回的cityCode 请求regionId

 @param cityCode 百度地图 cityCode
 @param finished 接口返回
 */
- (void)requestQueryRegionByCode:(NSString *)cityCode Finished:(SEGNetworkRequestCallBack)finished;


/**
 我发布的列表

 @param finished 完成
 */
- (void)requestMineRentalListWithFinished:(SEGNetworkRequestCallBack)finished;


/**
 相似房源

 @param rentalType 租售类型
 @param cityId 城市id
 @param finished 成功回调
 */
- (void)requestSimilarRentalListWithRentalType:(NSString *)rentalType cityId:(NSString *)cityId finished:(SEGNetworkRequestCallBack)finished;



/// 删除我的房源
/// @param rentalId 房屋id
/// @param finished 回调
- (void)requestDeleteMineHouseWithRentalId:(NSString *)rentalId finished:(SEGNetworkRequestCallBack)finished;



/// 下架我的房源
/// @param rentalId 房屋id
/// @param releaseType 发布状态 1:草稿 2:待审核 3:审核不通过 4:已放盘 5:下架
/// @param finished 回调
- (void)requestOffLineMineHouseWithRentalId:(NSString *)rentalId releaseType:(NSString *)releaseType finished:(SEGNetworkRequestCallBack)finished;


/// 擦亮我的房源
/// @param rentalId 房屋id
/// @param finished 回调
- (void)requestShineMineHouseWithRentalId:(NSString *)rentalId  finished:(SEGNetworkRequestCallBack)finished;


///  发布帮找接口
/// @param contactName 联系人姓名
/// @param contactTel 联系人电话
/// @param findContent 具体内容
- (void)requestHelpFindWithContactName:(NSString *)contactName contactTel:(NSString *)contactTel findContent:(NSString *)findContent finished:(SEGNetworkRequestCallBack)finished;


/**
 我车位发布的列表

 @param finished 完成
 */
- (void)requestMineCarRentalListWithFinished:(SEGNetworkRequestCallBack)finished;


/// 删除我的车位
/// @param rentalId 房屋id
/// @param finished 回调
- (void)requestDeleteMineCarWithRentalId:(NSString *)rentalId finished:(SEGNetworkRequestCallBack)finished;



/// 下架我的车位
/// @param rentalId 房屋id
/// @param releaseType 发布状态 1:草稿 2:待审核 3:审核不通过 4:已放盘 5:下架
/// @param finished 回调
- (void)requestOffLineMineCarWithRentalId:(NSString *)rentalId releaseType:(NSString *)releaseType finished:(SEGNetworkRequestCallBack)finished;


/// 擦亮我的房源
/// @param rentalId 房屋id
/// @param finished 回调
- (void)requestShineMineCarWithRentalId:(NSString *)rentalId finished:(SEGNetworkRequestCallBack)finished;


/// 请求区域信息
/// @param communityId 社区id
/// @param finished 完成回调
- (void)requestRegionInfoWithCommunityId:(NSString *)communityId finished:(SEGNetworkRequestCallBack)finished;


/**
 租售分页接口

 @param page 页码 1开始
 @param regionId 区域ID
 @param carRentalType 租售类型 5:出租 6出售
 @param finished 接口返回
 */
- (void)requestCarRentalListWithPage:(NSUInteger )page regionId:(NSString *)regionId carRentalType:(NSString *)carRentalType Finished:(SEGNetworkRequestCallBack)finished;


@end

NS_ASSUME_NONNULL_END
